package com.fortune.dto.in.mUser;

import javax.validation.constraints.Pattern;

import com.fortune.constants.PatternConstants;

import io.swagger.annotations.ApiModelProperty;

public class ResetPasswordDto {
	@Pattern(regexp=PatternConstants.PASSWORD, message="密码格式错误")
	@ApiModelProperty(required=true, example="新密码")
	private String password;
	@Pattern(regexp=PatternConstants.VERIFY_CODE, message="验证码错误")
	@ApiModelProperty(required=true, example="验证码（6位数字）")
	private String code;
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	@Override
	public String toString() {
		return "SalesManResetPasswordDto [password=" + password + ", code=" + code + "]";
	}
}
